<template>
  <div class="botoom" :class="{black:isblack==true}">
    <div class="b-item">打赏</div>
    <div class="b-item">评论{{take}}</div>
    <div class="b-item">喜欢{{like}}</div>
    <div class="b-item">转发</div>
  </div>
</template>

<script>
export default {
  data(){
    return{
     like:0,
     take:0,
     turn:0
    }
  },
  props:{
    likecount:{
      type:Number,
      default:0
    },
    takeconut:{
      type:Number,
      default:0
    },
    isblack:Boolean
  },
  watch:{
    likecount(){
      this.like=this.likecount
    },
    takeconut(){
      this.take=this.takeconut
    },
  }
};
</script>

<style lang="scss" scoped>
.botoom {
  display: flex;
  position: fixed;
  text-align: center;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 35px;
  font-size: 10px;
  line-height: 35px;
  background-color: #fff;
  z-index: 999;

  &.black{
    background-color: black;
    color: rgb(190, 182, 182);
  }

  .b-item{
    flex: 1;
  }
}
</style>